package com.wolfpire.workflow.om;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.wolfpire.system.common.Constants;

/**
 * 流程表单
 * @author lihd
 *
 */
@Entity
@Table(name = "wf_forms")
public class Forms implements Serializable{
	
	private static final long serialVersionUID = 2949622612573329896L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "form_type_id", unique = true, nullable = false, length = 16)
	private Long formTypeId;
	
	@Column(name = "form_name")
	private String formName;
	
	@Column(name = "form_code")
	private String formCode;
	
	@Column(name = "add_url")
	private String addUrl;
	
	@Column(name = "edit_url")
	private String editUrl;
	
	@Column(name = "detail_url")
	private String detailUrl;

	@Column(name = "host_url")
	private String hostUrl;
	
	@Column(name = "status", length=1)
	private String status = Constants.NORMAL_FLAG.toString();
	
	@Column(name = "remarks")
	private String remarks;
	
	public Forms() {
		super();
	}

	public Forms(Long formTypeId, String formName, String formCode,
			String addUrl, String editUrl, String detailUrl, String hostUrl,
			String status, String remarks) {
		super();
		this.formTypeId = formTypeId;
		this.formName = formName;
		this.formCode = formCode;
		this.addUrl = addUrl;
		this.editUrl = editUrl;
		this.detailUrl = detailUrl;
		this.hostUrl = hostUrl;
		this.status = status;
		this.remarks = remarks;
	}

	public Long getFormTypeId() {
		return formTypeId;
	}

	public void setFormTypeId(Long formTypeId) {
		this.formTypeId = formTypeId;
	}

	public String getFormName() {
		return formName;
	}

	public void setFormName(String formName) {
		this.formName = formName;
	}

	public String getFormCode() {
		return formCode;
	}

	public void setFormCode(String formCode) {
		this.formCode = formCode;
	}

	public String getAddUrl() {
		return addUrl;
	}

	public void setAddUrl(String addUrl) {
		this.addUrl = addUrl;
	}

	public String getEditUrl() {
		return editUrl;
	}

	public void setEditUrl(String editUrl) {
		this.editUrl = editUrl;
	}

	public String getDetailUrl() {
		return detailUrl;
	}

	public void setDetailUrl(String detailUrl) {
		this.detailUrl = detailUrl;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getHostUrl() {
		return hostUrl;
	}

	public void setHostUrl(String hostUrl) {
		this.hostUrl = hostUrl;
	}

	
}
